class CreatorSection {
  late List<Creator> data;
  late String title;
}

class CreatorEntity {
  // late int code;
  late List<Creator> data;
  // late String message;

  static CreatorEntity fromMap(Map<String, dynamic> map) {
    CreatorEntity roleEntityBean = CreatorEntity();
    // roleEntityBean.code = map['code'];

    roleEntityBean.data = []..addAll(
        (map['data'] as List ?? []).map((o) => Creator.fromMap(o))
    );

    // roleEntityBean.message = map['message'];
    return roleEntityBean;
  }

  Map toJson() => {
    // "code": code,
    "data": data,
    // "message": message,
  };
}

class Creator {
  late String answer;
  late String bid;
  late String category;
  late String cover;
  late int createTime;
  late String example;
  late int id;
  late String menu;
  late String menu2;
  late String menu3;
  late int number;
  late String prompt;
  late String role;
  late String subTitle;
  late String title;
  late int type;
  late String userNumbers;

  static Creator fromMap(Map<String, dynamic> map) {
    Creator dataBean = Creator();
    dataBean.answer = map['answer'];
    dataBean.bid = map['bid'];
    dataBean.category = map['category'];
    dataBean.cover = map['cover'];
    dataBean.createTime = map['createTime'];
    dataBean.example = map['example'];
    dataBean.id = map['id'];
    dataBean.menu = map['menu'];
    dataBean.menu2 = map['menu2'];
    dataBean.menu3 = map['menu3'];
    dataBean.number = map['number'];
    dataBean.prompt = map['prompt'];
    dataBean.role = map['role'];
    dataBean.subTitle = map['subTitle'];
    dataBean.title = map['title'];
    dataBean.type = map['type'];
    dataBean.userNumbers = map['userNumbers'];
    return dataBean;
  }

  Map toJson() => {
    "answer": answer,
    "bid": bid,
    "category": category,
    "cover": cover,
    "createTime": createTime,
    "example": example,
    "id": id,
    "menu": menu,
    "menu2": menu2,
    "menu3": menu3,
    "number": number,
    "prompt": prompt,
    "role": role,
    "subTitle": subTitle,
    "title": title,
    "type": type,
    "userNumbers": userNumbers,
  };
}